class ParkTokenFatalError(Exception):
    def __init__(self, context=None) -> None:
        self.context = context

    def __repr__(self) -> str:
        return f"致命错误: {self.context}"


class ParkTokenWechatHwndError(Exception):
    def __init__(self, context=None) -> None:
        self.context = context

    def __repr__(self) -> str:
        return f"微信窗口异常: {self.context}"


class ParkTokenFindImageError(Exception):
    def __init__(self, context=None) -> None:
        self.context = context

    def __repr__(self) -> str:
        return f"找不到图片: {self.context}"


class ParkTokenTokenParseError(Exception):
    def __init__(self, context=None) -> None:
        self.context = context

    def __repr__(self) -> str:
        return f"token解析错误: {self.context}"
